package com.water.aop;

/**
 * @author wsj
 * @version 1.0
 * @description: TODO
 * @date 2022/1/9 13:25
 */
public class TranAop implements Aop{
    @Override
    public void before() {
        System.out.println("======开始事务========");
    }

    @Override
    public void after() {
        System.out.println("=======提交事务=======");
    }

    @Override
    public void exception() {
        System.out.println("=======回滚事务=======");
    }

    @Override
    public void myFinally() {
        System.out.println("========结束事务=====");
    }
}
